package com.kantboot.api.phone.service.impl;

import com.kantboot.api.phone.domain.dto.ApiPhoneSmsSearchDTO;
import com.kantboot.api.phone.repository.ApiPhoneSmsRepository;
import com.kantboot.api.phone.service.IApiPhoneSmsService;
import com.kantboot.util.core.param.PageParam;
import com.kantboot.util.core.result.PageResult;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class ApiPhoneSmsServiceImpl implements IApiPhoneSmsService {

    @Resource
    private ApiPhoneSmsRepository repository;

    @Override
    public PageResult getBodyData(PageParam<ApiPhoneSmsSearchDTO> pageParam) {
        return PageResult.of(repository.getBodyData(pageParam.getData(),pageParam.getPageable()));
    }
}
